package com.qhgrain.api.menurolepermission.entity;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

import com.paas.base.modules.utils.date.DateUtil;

@Table(name="base_permission")
public class Permission {

	@Id
	private String id;
	
	private String menuId;
	
	private String name;
	/**
	 * 权限类型，0菜单权限，1功能权限
	 */
	private String type;
	/**
	 * 权限值
	 */
	private String pvalue;
	
	private String createDate;
	
	private String description;
	
	public Permission(){
		
	}

	

	public Permission(String id, String menuId, String name, String type,
			String pvalue,String description) {
		super();
		this.id = id;
		this.menuId = menuId;
		this.name = name;
		this.type = type;
		this.pvalue = pvalue;
		this.createDate = DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
		this.description = description;
	}



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	

	



	public String getPvalue() {
		return pvalue;
	}



	public void setPvalue(String pvalue) {
		this.pvalue = pvalue;
	}



	public String getDescription() {
		return description;
	}



	public void setDescription(String description) {
		this.description = description;
	}



	public String getCreateDate() {
		return createDate;
	}



	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	
}
